// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取设备历史监控数据 GET /device/load/history */
export async function loadMonitorControllerHistory(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.loadMonitorControllerHistoryParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationMeterData>(`${apiPrefix}/device/load/history`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取负载设备列表 GET /device/load/list */
export async function loadMonitorControllerGetMeterDevices(options?: { [key: string]: any }) {
  return request<API.ApiResultListDeviceInfo>(`${apiPrefix}/device/load/list`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** 获取设备实时监控数据 GET /device/load/realtime */
export async function loadMonitorControllerRealtime(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.loadMonitorControllerRealtimeParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultMeterData>(`${apiPrefix}/device/load/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
